<%--
  Created by IntelliJ IDEA.
  User: 86492
  Date: 2022/4/9
  Time: 17:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<html>
<head>
    <meta charset="utf-8">
    <title>添加学生</title>
    <link href="css/addstudent.css" rel="stylesheet" type="text/css"/>
</head>
<body>

    <c:if test="${param.status == '1'}">
        <script>alert("学生添加成功！");</script>
    </c:if>

    <c:if test="${param.status == '2'}">
        <script>alert("学生添加失败！");</script>
    </c:if>

    <div class="addstudent">
        <h1>添加学生</h1>
        <form action="addstudent" method="get">
            <table >
                <tr>
                    <td>学生姓名：</td>
                    <td><input type="text" name="studentName" placeholder=" 请输入姓名"/></td>
                </tr>

                <tr>
                    <td>学生年龄：</td>
                    <td><input type="text" name="studentAge" placeholder=" 请输入年龄"/></td>
                </tr>

                <tr>
                    <td>学生性别：</td>
                    <td>
                        <input type="radio" name="sex" value="男"  style="width: 20px ;height: 20px;" checked/>男
                        <input type="radio" name="sex" value="女" style="width: 20px ;height: 20px;" />女
                    </td>
                </tr>

                <tr>
                    <td>期末成绩：</td>
                    <td><input type="text" name="studentStore" placeholder=" 请输入成绩"/></td>
                </tr>

                <tr >
                    <td colspan="2" style="text-align: center;">
                        <button>添加</button>
                        &nbsp;
                        <button type="reset">重置</button>
                    </td>
                </tr>
            </table>

        </form>
    </div>

</body>
</html>

